package com.waa.gulimall.common.utils;

import java.util.Random;

public class ProductCheckCode {
    public static String  getCheckCode(){
        StringBuilder checkcode=new StringBuilder("");
        for (int i = 0; i <4 ; i++) {
            checkcode.append(new Random().nextInt(10));
        }
        return checkcode+"";
    }
}
